package com.ifnk.portaljava.hlyt.dao;

import com.ifnk.portaljava.hlyt.beans.Role;

import java.util.List;

public interface IRoleDAO {
	String NAME = "name";
	String CREATETIME = "createtime"; 
	String DISABLETIME = "disabletime";
	
	void save(Role transientInstance);

	void delete(Role persistentInstance);

	Role findById(Integer id);

	List findByExample(Role instance);

	List findByProperty(String propertyName, Object value);

	List findByName(Object name);

	List findByCreatetime(Object createtime);

	List findByDisabletime(Object disabletime);

	List findAll();

	Role merge(Role detachedInstance);

	void attachDirty(Role instance);

	void attachClean(Role instance);

	List<Role> findbyRole(Role role);
	
	List<Role> findByFuzzyQuery(Object propertyName,Object value);
}
